/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.xtd.view.inventory;

import com.xtd.model.inventory.PurchaseForm;
import com.xtd.view.AbstractManager;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Lu Yuanbin
 */
@ManagedBean
@SessionScoped
public class PurchaseManager extends AbstractManager {

    private List<PurchaseForm> purchaseFormList;
    private PurchaseForm selectedPurchaseForm;

    /** Creates a new instance of PurchaseManager */
    public PurchaseManager() {
    }

    /**
     * @return the purchaseFormList
     */
    public List<PurchaseForm> getPurchaseFormList() {
        if (purchaseFormList == null) {
            purchaseFormList = new ArrayList();
        }
        return purchaseFormList;
    }

    /**
     * @param purchaseFormList the purchaseFormList to set
     */
    public void setPurchaseFormList(List<PurchaseForm> purchaseFormList) {
        this.purchaseFormList = purchaseFormList;
    }

    /**
     * @return the selectedPurchaseForm
     */
    public PurchaseForm getSelectedPurchaseForm() {
        return selectedPurchaseForm;
    }

    /**
     * @param selectedPurchaseForm the selectedPurchaseForm to set
     */
    public void setSelectedPurchaseForm(PurchaseForm selectedPurchaseForm) {
        this.selectedPurchaseForm = selectedPurchaseForm;
    }
}
